// TicketClerkCustomerWhiteboard
//
// This class represents the whiteboard space for one customer-ticket clerk interaction.
// It will be protected by a monitor and will be used by a head customer and ticket clerk
// to transfer information.
//

#include "TicketClerkCustomerWhiteboard.h"
#include "system.h"

// Initialize the GroupData object
TicketClerkCustomerWhiteboard::TicketClerkCustomerWhiteboard() {
	numTickets = 0;
	totalPrice = 0;
	moneyGiven = 0;
	ticketStub = NULL;
}
// De-allocate bitmap		
TicketClerkCustomerWhiteboard::~TicketClerkCustomerWhiteboard() {
	delete ticketStub;
}	

// returns the number of tickets requested by the customer
int TicketClerkCustomerWhiteboard::getNumTickets() {
	return numTickets;
}	
// returns the total price reported by the clerk
int TicketClerkCustomerWhiteboard::getTotalPrice() {
	return totalPrice;
}	
// returns the total money given by customer
// Note: expected to be the same as the price above
int TicketClerkCustomerWhiteboard::getMoneyGiven() {
	return moneyGiven;
}
// returns TicketStub given by clerk
TicketStub* TicketClerkCustomerWhiteboard::getTicketStub() {
	return ticketStub;
}

// sets the number of tickets requested by the customer
void TicketClerkCustomerWhiteboard::setNumTickets(int num) {
	this->numTickets = num;
}
// sets the total price reported by the clerk
void TicketClerkCustomerWhiteboard::setTotalPrice(int price) {
	this->totalPrice = price;
}
// sets the total money given by customer
void TicketClerkCustomerWhiteboard::setMoneyGiven(int mg) {
	this->moneyGiven = mg;
}
// sets the TicketStub given by the clerk
void TicketClerkCustomerWhiteboard::setTicketStub(TicketStub* s) {
	this->ticketStub = s;
}
